using System;
using System.Collections;
using System.Collections.Generic;

using QLKS.DataLayer.Base;

namespace QLKS.DataLayer.BusinessObjects
{
    public partial class CTDoanhThu : BusinessBase<int>
    {
        #region Declarations

		private decimal _tyLe = default(Decimal);
		private decimal _doanhThu = default(Decimal);
		private decimal _thang = default(Decimal);
		private decimal _nam = default(Decimal);
		
		private LoaiPhong _loaiPhong = null;
		
		
		#endregion

        #region Constructors

        public CTDoanhThu() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_tyLe);
			sb.Append(_doanhThu);
			sb.Append(_thang);
			sb.Append(_nam);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual decimal TyLe
        {
            get { return _tyLe; }
			set
			{
				OnTyLeChanging();
				_tyLe = value;
				OnTyLeChanged();
			}
        }
		partial void OnTyLeChanging();
		partial void OnTyLeChanged();
		
		public virtual decimal DoanhThu
        {
            get { return _doanhThu; }
			set
			{
				OnDoanhThuChanging();
				_doanhThu = value;
				OnDoanhThuChanged();
			}
        }
		partial void OnDoanhThuChanging();
		partial void OnDoanhThuChanged();
		
		public virtual decimal Thang
        {
            get { return _thang; }
			set
			{
				OnThangChanging();
				_thang = value;
				OnThangChanged();
			}
        }
		partial void OnThangChanging();
		partial void OnThangChanged();
		
		public virtual decimal Nam
        {
            get { return _nam; }
			set
			{
				OnNamChanging();
				_nam = value;
				OnNamChanged();
			}
        }
		partial void OnNamChanging();
		partial void OnNamChanged();
		
		public virtual LoaiPhong LoaiPhong
        {
            get { return _loaiPhong; }
			set
			{
				OnLoaiPhongChanging();
				_loaiPhong = value;
				OnLoaiPhongChanged();
			}
        }
		partial void OnLoaiPhongChanging();
		partial void OnLoaiPhongChanged();
		
        #endregion
    }
}
